package com.jyx.api.search;

import com.jyx.framework.domain.course.CoursePub;
import com.jyx.framework.domain.course.TeachplanMediaPub;
import com.jyx.framework.domain.search.CourseSearchParam;
import com.jyx.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.Map;

@Api(value = "课程搜索",tags = {"课程搜索"})
public interface EsCourseControllerApi {
    QueryResponseResult<CoursePub> list(int page, int size, CourseSearchParam courseSearchParam) throws Exception;

    /**
     * map的key为课程id
     * @param id
     * @return
     */
    @ApiOperation("根据id查询课程信息")
    Map<String,CoursePub> getAll(String id);

    @ApiOperation("根据课程计划查询媒资信息")
    TeachplanMediaPub getMedia(String teachplanId);
}
